$(function () {
    //激活页面
    activeMenu("probe-manager");

    $('#templateTable').dataTable(
        {
            "paging": true,
            "lengthChange": false,
            "searching": false,
            "ordering": false,
            "info": true,
            "autoWidth": false
        }
    );

    $('#oneKeyTable').dataTable(
        {
            "paging": true,
            "lengthChange": false,
            "searching": false,
            "ordering": false,
            "info": true,
            "autoWidth": false
        }
    );


    var templateAdd = $('#template-add');
    templateAdd.click(function () {
        $('#add-model-pop').show();
    });

    var modifyTemplate = $('.modify-template');
    modifyTemplate.click(function () {
        $('#add-model-pop').show();
    });

    var deleteTemplate = $('.delete-template');
    deleteTemplate.click(function () {
        $('#confirm-delete-model-pop').show();
    });


    var onKeyAdd = $('#one-key-add');
    onKeyAdd.click(function () {
        $('#add-onekey-pop').show();
    });

    var onKeyDetail = $('.temp-detail');
    onKeyDetail.click(function () {
        $('#add-onekey-pop').show();
    });

    var onKeyModify = $('.temp-modify-group');
    onKeyModify.click(function () {
        $('#add-onekey-pop').show();
    });

    var onKeyDelete = $('.temp-delete-group');
    onKeyDelete.click(function () {
        $('#confirm-delete-model-pop').show();
    });
});